package com.csu.service.serviceImpl;

import com.csu.mapper.UserHeadPictureMapper;
import com.csu.service.HeadPictureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HeadPictureServiceImpl implements HeadPictureService {
    @Autowired
    private UserHeadPictureMapper userHeadPictureMapper;
    /**
     * 获取学生的头像
     * @param userId
     * @return String
     */
    @Override
    public String getHeadPicturePathOfUser(int userId) {
        return userHeadPictureMapper.getHeadPicture(userId);
    }
}
